package com.group4.order.service;

import com.study.util.LogUtils;
import com.study.util.ResponseResult;
import com.study.vo.CourseInfoVO;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("service-edu")
@Component
public interface CourseService {
    /**
     * 调用通过课程id查询课程,获取课程的费用
     */

//直接把controller里面的这个方法体拿过来,保持一致
    @GetMapping("/edu/course/getById/{id}")
    public ResponseResult<CourseInfoVO> getById(@PathVariable("id")  String id);
    //这里要加上Requestmapping的edu/course
    @PutMapping("/edu/course/updateBuyCount/{id}")
    public ResponseResult<Void> updateBuyCount(@PathVariable("id") String id);



}
